package com.smooth.sys.site.biz.member.genx.emums;

public enum MemberLevel {
	NOMEBER(0, "未充值"),
	LEVE1(1, "初级"),
	LEVE2(2, "中级"),
	;

	public Integer value;
	public String name;

	MemberLevel(int value, String name) {
		this.value = value;
		this.name = name;
	}

	public static MemberLevel getStatus(Integer value) {
		if (value != null) {
			MemberLevel[] otypes = MemberLevel.values();
			for (MemberLevel memberType : otypes) {
				if (value.equals(memberType.value)) {
					return memberType;
				}
			}
		}
		return null;
	}
}
